package online.shenme.day07;
import java.util.ArrayList;

public class Test06 {
    public static void main(String[] args) {
        ArrayList<Integer> integers=new ArrayList<>();
        ArrayList<String> list=new ArrayList<>();
        plus(list,"123");
        plus(integers,12);
        System.out.println(find(integers,10));

    }

    private static int find(ArrayList<Integer> integers, int i) {
        int flag=-1;
        for (int j = 0; j < integers.size(); j++) {
            if (integers.get(j)==i) {
                flag=j;
            }
        }
        return flag;
    }

    public static <E>void plus(ArrayList<E> list, E e){
        list.add(e);
    }
}
